import { defineStore } from 'pinia';

export const useMessagesStore = defineStore('messages', {
  state: () => {
    return {
      messages: []
    }
  },
  actions: {
    getOrders() {
      uni.request({
        url: "/message",
        success: ({ data }) => {
          this.messages = data
          console.log("获取消息")
        }
      })
    }
  }
})